package br.com.unb.provenance.controller;

import org.hibernate.Session;

import br.com.caelum.vraptor.Path;
import br.com.caelum.vraptor.Resource;
import br.com.unb.provenance.entities.Activity;

@Resource
public class IndexController {
	
	private Session session;
	
	
	public IndexController(Session session) {
		this.session = session;
	}


	@Path("/")
	public void index(){
		System.out.println("rodou!");
		session.createCriteria(Activity.class).list();
	}
}
